package com.sumainfor.wx.tenant.service.impl;

import com.sumainfor.common.EQBtsignConstants;
import com.sumainfor.common.util.CustomMap;
import com.sumainfor.common.util.HttpUtil;
import com.sumainfor.common.util.JsonResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 功能描述:
 * 身份证相关
 * @Auther: zhlu
 * @Date: 2019/5/21 10:58
 * @Description:
 */
@Service
public class TenantIdentitService {

    Logger log= LoggerFactory.getLogger(TenantIdentitService.class);

    @Autowired
    private HttpUtil httpUtil;

    public JsonResult identity(Map<String,Object>params){
        JsonResult<Map<String, Object>> post = httpUtil.doPost(EQBtsignConstants.URL_OPENREALNAME + "/infoauth/psn/identity", CustomMap.create()
                .put("name", params.get("name"))
                .put("idno", params.get("idno"))
//                .put("idType", 19)
        );
        log.info("------------------------");
        log.info("---------------post:"+post);
        return post;
    }


}
